import request from '@/utils/request'

export function groupdatas(data) {
  return request({
    url: 'admin/cmd/v1/fwgroupdata',
    method: 'post',
    data
  })
}

export function saveOrUpdate(data) {
  return request({
    url: 'admin/cmd/v1/fwgroupdata',
    method: 'put',
    data
  })
}

export function getDetail(id) {
  return request({
    url: 'admin/cmd/v1/fwgroupdata/' + id,
    method: 'get'
  })
}

export function getToJson(id) {
  return request({
    url: 'admin/cmd/v1/fwgroupdata/json/' + id,
    method: 'get'
  })
}
